//输出1到100之间的素数
public class code {
    public static void main(String[] args) {
        int temp = 1;
       for(int i = 1; i <= 100; i+=2){
           temp = 1;
           for(int j = 2; j <= Math.sqrt(i); j++){
               if(i%j==0)
               {
                   temp = 0;
                   break;
               }
           }
           if(temp == 1){
               System.out.print("是素数"+i);
           }
       }
    }
}
